Optimal. Leaf size=33 \[ -\frac{(x+1) (2 x+1)}{6 \left (x^2+x+1\right )^2}-\frac{1}{6 \left (x^2+x+1\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0133338, antiderivative size = 33, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {818, 629} \[ -\frac{(x+1) (2 x+1)}{6 \left (x^2+x+1\right )^2}-\frac{1}{6 \left (x^2+x+1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 818
Rule 629
Rubi steps
\begin{align*} \int \frac{x (1+x)^2}{\left (1+x+x^2\right )^3} \, dx &=-\frac{(1+x) (1+2 x)}{6 \left (1+x+x^2\right )^2}-\frac{1}{6} \int \frac{-1-2 x}{\left (1+x+x^2\right )^2} \, dx\\ &=-\frac{(1+x) (1+2 x)}{6 \left (1+x+x^2\right )^2}-\frac{1}{6 \left (1+x+x^2\right )}\\ \end{align*}
Mathematica [A] time = 0.0115921, size = 22, normalized size = 0.67 \[ -\frac{3 x^2+4 x+2}{6 \left (x^2+x+1\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 20, normalized size = 0.6 \begin{align*}{\frac{1}{ \left ({x}^{2}+x+1 \right ) ^{2}} \left ( -{\frac{{x}^{2}}{2}}-{\frac{2\,x}{3}}-{\frac{1}{3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.985452, size = 43, normalized size = 1.3 \begin{align*} -\frac{3 \, x^{2} + 4 \, x + 2}{6 \,{\left (x^{4} + 2 \, x^{3} + 3 \, x^{2} + 2 \, x + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.18042, size = 76, normalized size = 2.3 \begin{align*} -\frac{3 \, x^{2} + 4 \, x + 2}{6 \,{\left (x^{4} + 2 \, x^{3} + 3 \, x^{2} + 2 \, x + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.121625, size = 31, normalized size = 0.94 \begin{align*} - \frac{3 x^{2} + 4 x + 2}{6 x^{4} + 12 x^{3} + 18 x^{2} + 12 x + 6} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15019, size = 27, normalized size = 0.82 \begin{align*} -\frac{3 \, x^{2} + 4 \, x + 2}{6 \,{\left (x^{2} + x + 1\right )}^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]